package com.yc.booktable.mapper;

import com.yc.booktable.entity.AdminUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zbh
 * @since 2022-06-06
 */
@Mapper
public interface AdminUserMapper extends BaseMapper<AdminUser> {


    @Select("select * from admin_user where id != #{id}")
    List<AdminUser> selectby(@PathVariable("id") Long id);
}
